/**
 * CC_Model_DownloadFileHostsList.java
 */
package commands.controller;
import dataTypes.*;
import java.util.*;


/**
 * A command returning a list of hosts hosting specified download file
 * @author Michal Kolodziejski
 */
public class CC_Model_DownloadFileHostsList extends ControllerCommand {
	/** A file of which a list of hosts was requested. */
	private DownloadFile downloadFile;
	/** A list of hosts hosting the file */
	private List<Host> hostsList;
	
	/**
	 * Constructor
	 * @param downloadFile a file of which a list of hosts was requested
	 * @param hostsList a list of hosts hosting the file
	 */
	public CC_Model_DownloadFileHostsList(DownloadFile downloadFile, List<Host> hostsList){
		super(ControllerCommandType.MODEL_DOWNLOAD_FILE_HOSTS_LIST);
		this.downloadFile = downloadFile;
		this.hostsList = hostsList;
	}

	/**
	 * @return the file of which a list of hosts was requested
	 */
	public DownloadFile getDownloadFile() {
		return downloadFile;
	}

	/**
	 * @return the list of hosts hosting the file
	 */
	public List<Host> getHostsList() {
		return hostsList;
	}
}
